home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
FSELECT.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
2KB
|
51 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_FSelect(cAlias) -->lAliasFound
PARAMETERS:
cAlias : Database Alias to Select
SHORT:
Select a database by work area alias.
DESCRIPTION:
_FSelect() will search through all open work areas looking for one with the
alias specified in cAlias. If an alias is not specifically declared when you
open a file, the file's alias defaults to the file name so you may still find
an area with _FSelect() by specifying the file name for files which you did
not specify an alias. File Name excludes File Extention!
Why use _FSelect() when Clipper's SELECT command will select on an alias
expression? SELECT will result in a runtime error if the expression is not a
valid alias. _FSelect() will simply return FALSE if the area is not open or
will select that area if it is.
_FSelect() differs from _Select() in that _FSelect() looks specifically for
an ALIAS, whereas _Select() is dual-purpose in nature and can find a work
area by number or by Alias.
NOTE:
EXAMPLE:
_FSelect('BUDGET')
Result: If BUDGET.DBF (or another file opened with the ALIAS BUDGET) is
open anywhere in the envirnoment, it will be selected and will become
the current work area. Else, the work area that was current before the
call is restored and remains current.
The Return Value is a logical indicating whether the alias was found
and selected. TRUE = Yes.
******************************************************************************/